package com.example.cdctestsystem.pojo;

import java.io.Serializable;
import java.util.Date;

public class Examination implements Serializable {
    private Integer id;

    /**
	* 考试开始时间
	*/
    private Date examinationStartTime;

    /**
	* 考试截止时间
	*/
    private Date examinationEndTime;

    /**
	* 1为使用，0为删除
	*/
    private Boolean enable;

    /**
	* 考试发起人id
	*/
    private Admin admin;

    /**
	* 考试标题
	*/
    private String examinationTitle;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getExaminationStartTime() {
        return examinationStartTime;
    }

    public void setExaminationStartTime(Date examinationStartTime) {
        this.examinationStartTime = examinationStartTime;
    }

    public Date getExaminationEndTime() {
        return examinationEndTime;
    }

    public void setExaminationEndTime(Date examinationEndTime) {
        this.examinationEndTime = examinationEndTime;
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    public Admin getAdmin() {
        return admin;
    }

    public void setAdmin(Admin admin) {
        this.admin = admin;
    }

    public String getExaminationTitle() {
        return examinationTitle;
    }

    public void setExaminationTitle(String examinationTitle) {
        this.examinationTitle = examinationTitle;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", examinationStartTime=").append(examinationStartTime);
        sb.append(", examinationEndTime=").append(examinationEndTime);
        sb.append(", enable=").append(enable);
        sb.append(", adminId=").append(admin);
        sb.append(", examinationTitle=").append(examinationTitle);
        sb.append("]");
        return sb.toString();
    }
}